package com.thingsgrid.device.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Data
@Document(collection = "topic")
//@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "topic对象", description = "topic对象")
public class Topic implements Serializable {
    /**
     * 主键id
     */
    @Id
    @Field("topic_id")
    private String topicId;
    /**
     * topic类名称
     */
    @Field("topic_class_name")
    private String topicClassName;
    /**
     * topic类
     */
    @Field("topic_class")
    private String topicClass;
    /**
     * 类型
     */
    @Field("topic_type")
    private String topicType;
    /**
     * topic描述
     */
    @Field("topic_describe")
    private String topicDescribe;
    /**
     * 创建人
     */
    @Field("create_author")
    private String createAuthor;
    /**
     * 创建时间
     */
    @Field("create_time")
    private String createTime;

}
